﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using QualityRpt.Utils;

namespace QualityRpt.Dao
{
    /// <summary>
    /// 漏读数据的持久化接口
    /// </summary>
    interface IUNReadTransDao
    {
        /// <summary>
        /// 抽取一段时间的漏读数据
        /// </summary>
        void Extract(DateTime startTime, DateTime endTime,out string msg);
        /// <summary>
        /// 按日汇总漏读数据
        /// </summary>
        /// <param name="startTime"></param>
        /// <param name="endTime"></param>
        void StatTransCount(DateTime startTime, DateTime endTime);
        /// <summary>
        /// 漏读标签综合查询支持
        /// </summary>
        DataTable GetOBUStatByQ(DateTime startTime, DateTime endTime, int statTType, string spin, string specin, string cnin,
            string rdin, string plazain, string lanein, bool fromTemp, string[] numstartArray, string[] numendArray);
        /// <summary>
        /// 天线综合查询支持
        /// </summary>
        DataTable GetAIRStatByQ(DateTime startTime, DateTime endTime, int statTType, string spin, string specin, string rdin, string plazain, string lanein);
        /// <summary>
        /// 支持多条件的明细统计
        /// </summary>
        DataTable GetOBUDetailByQ(DateTime startTime, DateTime endTime, string spin, string specin, string cnin, string rdin,
            string plazain, string lanein, bool fromTempTable, string[] numstartArray, string[] numendArray, PageUtils pu);
        /// <summary>
        /// 以obu分组的明细v1.2
        /// </summary>
        DataTable GetOBUGDetailByQ(DateTime startTime, DateTime endTime, string spin, string specin, string cnin
           , string rdin, string plazain, string lanein, bool fromTempTable, string[] numstartArray, string[] numendArray, PageUtils pu);
        /// <summary>
        /// 支持多条件的天线交易明细统计
        /// </summary>
        DataTable GetAIRDetailByQ(DateTime startTime, DateTime endTime, string spin, string specin, string rdin, string plazain, string lanein,PageUtils pu);
        /// <summary>
        /// 获取以天线分组的明细
        /// </summary>
        DataTable GetAIRGDetailByQ(DateTime startTime, DateTime endTime, string spin, string specin, string rdin, string plazain, string lanein, PageUtils pu);
        /// <summary>
        /// 从中间表汇总漏读数据
        /// </summary>
        DataTable GetOBUStatByMQ(DateTime startTime, DateTime endTime, int statTType, string spin, string specin,
           string cnin, string rdin, string plin, string lnin);
        /// <summary>
        /// 从中间表汇总漏读数据
        /// </summary>
        DataTable GetAIRStatByMQ(DateTime startTime, DateTime endTime, int statTType, string spin, string specin,
            string rdin, string plin, string lnin);
		/// <summary>
		/// 获得军车统计信息
		/// </summary>
		DataTable GetJZTBG (DateTime startTime, DateTime endTime);
    }
}
